import Layout from '@/layout'

const baseRouter =
{
  path: '/base',
  name: 'base-group',
  component: Layout,
  meta: { title: '基础管理', icon: 'tree', roles: ['m7100'] },
  children: [
    {
      path: 'store',
      component: (resolve) => require(['@/views/base-group/store-manage/index'], resolve),
      name: 'StoreManage',
      remoteParam: { serviceName: 'warehouse', path: '/api/store-info/' },
      remoteUrl: '',
      meta: { title: '仓库管理', roles: ['m7110'] }
    },
    {
      path: 'product',
      component: (resolve) => require(['@/views/base-group/product-manage/index'], resolve),
      name: 'ProductManage',
      remoteParam: { serviceName: 'warehouse', path: '/api/product-info/' },
      remoteUrl: '',
      meta: { title: '货品类目', roles: ['m7120'] }
    },
    {
      path: 'store-product',
      component: (resolve) => require(['@/views/base-group/store-product-manage/index'], resolve),
      name: 'StoreProductManage',
      remoteParam: { serviceName: 'warehouse', path: '/api/store-product/' },
      remoteUrl: '',
      meta: { title: '仓库货品', roles: ['m7130'] }
    },
    {
      path: 'store-supplier',
      component: (resolve) => require(['@/views/base-group/store-supplier-manage/index'], resolve),
      name: 'StoreSupplierManage',
      remoteParam: { serviceName: 'warehouse', path: '/api/store-supplier/' },
      remoteUrl: '',
      meta: { title: '供应商列表', roles: ['m7140'] }
    }
  ]
}
export default baseRouter
